
/*
 * Hlpay-Plus aggregate payment system. Copyright
 * (c) 2022-2023 Hlpay Team Copyright has the right of final interpretation.
 */
package com.hlkj.pay.infrastructure.model.admin;

import com.baomidou.mybatisplus.annotation.TableName;
import com.hlkj.framework.mybatis.core.dataobject.BaseDO;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * @author HlpayTeam
 * @date 2024/09/03 14:10
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
@TableName("t_admin_role")
public class RoleDO extends BaseDO {

    private static final long serialVersionUID = -5261339850738549168L;

    /**
     * 角色编码
     */
    private String code;

    /**
     * 角色名称
     */
    private String name;

    /**
     * 角色描述
     */
    private String description;


    /**
     * 是否超级管理员 1 是 0 否
     */
    private Boolean superAdminFlag;
    @Schema(description = "1 运营平台 2 代理 3 商户")
    private Integer sysType;

    @Schema(description = "商户编码")
    private String sn;
    
    @Schema(description = "1 是 0 否")
    private Integer defaultRole;
}
